<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var str1 = 'duguqingying';
        var str2 = 'duguqingying,add oil';

        var str3 = '独孤轻盈';
        var str4 = '独孤轻盈，加油';
        console.log(str1.length);
        console.log(str2.length);
        console.log(str3.length);
        console.log(str4.length);
    </script>
</body>

</html>